﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Content;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Pazinga
{
    public class TankFire:WarObject
    {       

        /// <summary>
        /// Create new TankeFire object
        /// </summary>
        /// <param name="position">tank fire position</param>
        public TankFire(Vector2 position)
        {
            //set the TankFire X axis
            X = position.X;

            //set the TankFire Y axis
            Y = position.Y;
        }

        /// <summary>
        /// Update the tankfire object position
        /// </summary>
        public  void Update()
        {
            //raise the tankfire up by decreasing the y axis value
            Y-=20;
        }

        /// <summary>
        /// Gets or Sets TankFire Health
        /// </summary>
        public float Health 
        {
            get;
            set;
        }

        public void DrawTankFire(SpriteBatch sp,Texture2D Tex) 
        {
            sp.Draw(Tex,Position,Color.White);
        }
    }
}
